const array = [1, 1, 2, 2, 3];
const uniqueArray = [...new Set(array)];
console.log(uniqueArray); 